import send_msg from '@feidao-factory/send-msg';

/**
 * 调用服务
 * @param action_id 系统参数actionid
 * @param session_id 系统参数systemid
 * @param spaceid 项目spaceid
 * @param service_name 服务名称
 * @param params 服务参数
 * @example call_service(action_id, session_id, service_name, params);
 */
export default function call_service<T>(action_id: string, session_id: string, service_name: string, params: any) {

	return send_msg<T>(action_id, session_id, service_name, params);
}
